package kgame5.k3d.core.render.layerrender {
import kgame5.k3d.core.obj3d.info.geometry.Face3D;
import kgame5.k3d.core.obj3d.info.geometry.GeometryInfo;
import kgame5.k3d.core.obj3d.info.material.MaterialInfo;
import kgame5.k3d.core.obj3d.info.transform.TransformInfo;
import kgame5.k3d.core.render.RenderSessionData;

import flash.display.DisplayObject;
import flash.display.Graphics;

/**
 * @author kangkai
 * 只负责渲染一个图层里的东西
 */
public class LayerRender {
	protected var mc:DisplayObject;
	protected var g:Graphics;
	
	public var aOuterFace:Array;//如果几个mesh3D融合成一个的话，用这个装所有的,临时用的
	
	public function LayerRender(){
		
	}
	
	public function getDO():DisplayObject{
		return mc;
	}
	
	protected function doSort(aSortedFace:Array):void{
		//对面进行排序，保证正确的遮罩效果
		//var st3:int=getTimer();
		aSortedFace.sortOn(Face3D.SORT_NAME, Array.NUMERIC | Array.DESCENDING);	
		//session.stati.sortFaceTime+=getTimer()-st3;
	}
	
	//这个不能继承，因为各个函数不同
	public function render(gi:GeometryInfo,mi:MaterialInfo,ti:TransformInfo,session:RenderSessionData):void{
	}

	
}//end of class
}
